rem @echo off

for /F %%i in (modules.txt) do call :mercurial %%i %*
pause
exit /b 0

:mercurial
echo %1
hg -R %*